package com.lsj.text;

import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class text {
    @Test
    public void User(){
        ClassPathXmlApplicationContext applicationContext=new ClassPathXmlApplicationContext("spring.xml");
        Object user = applicationContext.getBean("user");
        System.out.println(user);
        applicationContext.close();
    }
}
